#pragma once
#include "UIBase.h"
class RankUI : public UIBase
{
public:
	RankUI();
	~RankUI();
public:
	static cocos2d::Node* createNode();
	virtual bool init();
	CREATE_FUNC(RankUI);

	Node* m_backGround;
	Node* m_selectedNode;
	int m_CurSelectType;
	bool m_isClicked;
	Sprite* m_CloseBtn;
	Sprite* m_LevelBtn;
	Sprite* m_WarriorBtn;
	Sprite* m_WizardBtn;
	Sprite* m_TaoistBtn;
	ui::ListView* m_showListView;
	vector<Sprite*> m_controlList;

public:
	bool TouchDown(Touch* touch);
	void TouchMove(Touch* touch);
	bool TouchUp(Touch* touch);

	void Open();							//打开
	void Close();							//关闭
	void RefreshData();					//刷新背包界面数据
};

